import router from '@system.router';


// 传递参数  data1 - > pv1 --> key1
var picker1value = null;
var picker2value = null;

export default {
    data: {
        picker1range:["1","2","3"],
        picker2range:["较慢","舒缓","较快"]
    },
    clickAction(){
        console.log("我被点了");

        router.replace({
            uri:'pages/countdown/countdown',
            // 传递到目标页面的参数
            params: {
                "data1": picker1value,
                "data2": picker2value
             }
        });
    },

    /* 选项变换响应函数 */
    changeAction1(pv){
        console.log("左边的选中项:" + pv.newValue);
        picker1value = pv.newValue;
    },
    changeAction2(pv){
        console.log("右边的选中项:" + pv.newValue);
        picker2value = pv.newValue;
    }
}
